package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetBillTypeDTO;
import lombok.Data;
import org.simpleframework.xml.Element;

import java.io.Serializable;
import java.util.Date;



/**
 * 票据种类
 * 
 * @author hlp
 * @email 1459875748@qq.com
 * @date 2023-02-02 10:13:13
 */
@Data
public class BillTypeVO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//唯一标识号
	private Long billtypeid;
	//票据编码
	private String billcode;
	//票据名称
	private String billname;
	//票号长度
	private Integer codelength;
	//是否可用
	private Integer isenable;
	//操作时间
	private String writetime;

	public BillTypeVO(){}

    public BillTypeVO(SetBillTypeDTO bean){

	    if(bean.getBilltypeid()!=null){
            this.billtypeid=Long.valueOf(bean.getBilltypeid());
        }
        if(bean.getCodelength()!=null){
            this.codelength=Integer.valueOf(bean.getCodelength());
        }
	    this.billcode=bean.getBillcode();
        this.billname=bean.getBillname();

    }
}
